// 引用Vue
import Vue from "vue"

// 引用路由
import VueRouter from "vue-router"

import Login from "../view/login";
import Register from "../view/register";
import Text from "../view/text";
import Table from "../view/table";

// 使用路由
Vue.use(VueRouter)

// 创建路由对象
const router = new VueRouter({
  routes: [
    {
      path: '/login',
      component: Login,
    },
    {
      path: '/register',
      component: Register,
    },
    {
      path: '/text',
      component: Text,
    },
    {
      path: '/table',
      component: Table,
    },
    
  ]
})

// 导出
export default router